package utils;

import org.springframework.util.DigestUtils;

import java.nio.charset.StandardCharsets;

/**
 * Md5加密
 */
public class Md5Utils {

    public static String getMd5(String plainTxt){
        return DigestUtils.md5DigestAsHex(plainTxt.getBytes(StandardCharsets.UTF_8));
    }
}
